#import "UniverseOnyxView.h"


@implementation UniverseOnyxView



- (void)setKineticCuriousIntrepid:(UniverseOnyxModel *)kineticCuriousIntrepid {
	_kineticCuriousIntrepid = kineticCuriousIntrepid;

	//: 配置cell的UI



	if (kineticCuriousIntrepid.kiteHammer.count > 0) {
		[self.zealDriftwoodImageView sd_setImageWithURL:[NSURL URLWithString:kineticCuriousIntrepid.kiteHammer[0]] placeholderImage:nil];
	}

	self.rippleLabel.text = kineticCuriousIntrepid.kaleidoscopeCuriousFable ? @"YES" : @"NO";





}
- (UITextView *)volatileGratitudeTextView {
	if (!_volatileGratitudeTextView) {
	
        _volatileGratitudeTextView = [UITextView new];
	}
	return _volatileGratitudeTextView;
}

- (UIImageView *)zealNirvanaImageView {
	if (!_zealNirvanaImageView) {
	
        _zealNirvanaImageView = [UIImageView new];
        _zealNirvanaImageView.contentMode = UIViewContentModeScaleAspectFill;
        _zealNirvanaImageView.clipsToBounds = YES;
        _zealNirvanaImageView.layer.cornerRadius = 3;
        _zealNirvanaImageView.layer.masksToBounds = YES;
        UIImage *glow = [UIImage imageNamed:@"images/image_1.png"];
        if (glow) {
	        _zealNirvanaImageView.image = glow;
        }
	}
	return _zealNirvanaImageView;
}

//: 设置dreamscapeIgniteInstinct的圆角
+ (void)zealGlimmerAlchemy:(UIImageView *)amazingPicture whisper:(CGFloat)zealWanderNostalgia {
	amazingPicture.layer.cornerRadius = zealWanderNostalgia;
	amazingPicture.layer.masksToBounds = YES;
}

//: self.rippleYardJewelBtn 的点击事件
- (void)action_3 {}

- (UIView *)perceptiveView {
	if (!_perceptiveView) {
	
        _perceptiveView = [[UIView alloc] init];
	}
	return _perceptiveView;
}

- (void)zestfulConfigViews {
	//: 描述_0
	[self addSubview:self.volatileGratitudeTextView];
	[self.volatileGratitudeTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(125);
		make.height.mas_equalTo(64);
		make.top.equalTo(@(19));
		make.bottom.equalTo(@(11));
	}];

	//: 描述_1
	[self addSubview:self.zealNirvanaImageView];
	[self.zealNirvanaImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(64);
		make.height.mas_equalTo(39);
	}];


    //: 描述_2
    UIImageView *dreamscapeIgniteInstinct = [UIImageView new];
    dreamscapeIgniteInstinct.contentMode = UIViewContentModeScaleAspectFill;
    dreamscapeIgniteInstinct.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [UniverseOnyxView zealGlimmerAlchemy:dreamscapeIgniteInstinct whisper:19];
    UIImage *yonder = [UIImage imageNamed:@"images/image_2.png"];
    if (yonder) {
	    dreamscapeIgniteInstinct.image = yonder;
    }
    self.zealDriftwoodImageView = dreamscapeIgniteInstinct;
    [self addSubview:dreamscapeIgniteInstinct];
	[self.zealDriftwoodImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(188);
		make.height.mas_equalTo(198);
	}];


    //: 描述_3
    self.rippleYardJewelBtn = [UIButton new];
    UIImage *zealPrismReverie = [UIImage imageNamed:@"images/icon_3.png"];
    if (zealPrismReverie) {
	    [self.rippleYardJewelBtn setImage:zealPrismReverie forState:UIControlStateNormal];
    }
    [self.rippleYardJewelBtn setTitle:@"button_3" forState:UIControlStateNormal];
    [self.rippleYardJewelBtn setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [self.rippleYardJewelBtn setTitleColor:[UIColor colorWithRed:69/255.0 green:198/255.0 blue:195/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.rippleYardJewelBtn setTitleColor:[UIColor colorWithRed:67/255.0 green:150/255.0 blue:111/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.rippleYardJewelBtn addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.rippleYardJewelBtn];
	[self.rippleYardJewelBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(176);
		make.height.mas_equalTo(62);
		make.top.equalTo(@(13));
	}];


    //: 描述_4
    UILabel *volatilePicture = [UILabel new];
    volatilePicture.text = @"label_4";
    volatilePicture.font = [UIFont systemFontOfSize:19 weight:UIFontWeightMedium];
    volatilePicture.textColor = [UIColor colorWithRed:157/255.0 green:252/255.0 blue:26/255.0 alpha:0.6];
    volatilePicture.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = volatilePicture.numberOfLines = 1;
    NSInteger harbinger = 1;
    if (harbinger>41 && harbinger < 6199) {
	    harbinger = 50;
    }
    volatilePicture.numberOfLines = harbinger;
    self.rippleLabel = volatilePicture;
    [self addSubview:volatilePicture];
	[self.rippleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(79);
		make.height.mas_equalTo(80);
		make.top.equalTo(@(14));
	}];


    //: 描述_5
    self.yarnRadiateImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.yarnRadiateImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.yarnRadiateImageView.clipsToBounds = YES;
    self.yarnRadiateImageView.layer.cornerRadius = 3;
    self.yarnRadiateImageView.layer.masksToBounds = YES;
    self.yarnRadiateImageView.size = CGSizeMake(100, 169);
    self.yarnRadiateImageView.left = 40;
    self.yarnRadiateImageView.top = 5;
    UIImage *vortex = [UIImage imageNamed:@"images/image_5.png"];
    if (vortex) {
	    self.yarnRadiateImageView.image = vortex;
    }
    [self addSubview:self.yarnRadiateImageView];


    //: 描述_6
    UIImageView *yarnPicture = [[UIImageView alloc] initWithFrame:CGRectZero];
    yarnPicture.contentMode = UIViewContentModeScaleAspectFill;
    yarnPicture.clipsToBounds = YES;
    yarnPicture.layer.cornerRadius = 4;
    yarnPicture.layer.masksToBounds = YES;
    UIImage *whimsy = [UIImage imageNamed:@"images/image_6.png"];
    if (whimsy) {
	    yarnPicture.image = whimsy;
    }
    self.questImageView = yarnPicture;
    [self addSubview:yarnPicture];
	[self.questImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(57);
		make.height.mas_equalTo(111);
		make.bottom.equalTo(@(27));
	}];

	//: 描述_7
	[self addSubview:self.perceptiveView];
	[self.perceptiveView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(102);
		make.height.mas_equalTo(86);
		make.top.equalTo(@(11));
	}];
}


@end